<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:c="http://xmlns.jcp.org/jsp/jstl/core">

      <ui:composition template="../template/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewDatosTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewDatosLabel_cedula}"/>
                    <h:outputText value="#{datosController.selected.cedula}" title="#{bundle.ViewDatosTitle_cedula}"/>
                    <h:outputText value="#{bundle.ViewDatosLabel_nombre}"/>
                    <h:outputText value="#{datosController.selected.nombre}" title="#{bundle.ViewDatosTitle_nombre}"/>
                    <!--<h:outputText value="#{bundle.ViewDatosLabel_foto}"/>-->
                    
                    <img src="/imagenget/faces/BuscarIMG?cedula=#{datosController.selected.cedula}" width="600" height="500"></img>
                         
                                  
                </h:panelGrid>
                <br />
                <h:commandLink action="#{datosController.destroyAndView}" value="#{bundle.ViewDatosDestroyLink}"/>
                <br />
                <br />
                <h:link outcome="Edit" value="#{bundle.ViewDatosEditLink}"/>
                <br />
                <h:commandLink action="#{datosController.prepareCreate}" value="#{bundle.ViewDatosCreateLink}" />
                <br />
                <h:commandLink action="#{datosController.prepareList}" value="#{bundle.ViewDatosShowAllLink}"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.ViewDatosIndexLink}"/>

            </h:form>
        </ui:define>
    </ui:composition>

</html>
